package com.xy.modular.basics.service.impl;

import com.xy.framework.base.dao.IBaseDao;
import com.xy.framework.base.service.BaseServiceImpl;
import com.xy.modular.basics.dao.HouseMapper;
import com.xy.modular.basics.entity.House;
import com.xy.modular.basics.service.IHouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("houseService")
public class HouseServiceImpl extends BaseServiceImpl<House, String> implements IHouseService {
	@Resource
	private HouseMapper houseMapper;

	@Override
	public void validateEntity(House house) {

	}

	@SuppressWarnings("rawtypes")
	@Override
	protected IBaseDao getBaseDao() {
		return this.houseMapper;
	}

	@Override
	public House getByName(String block) {
		return houseMapper.getByName(block);
	}

}
